﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="DLR.aspx.cs" Inherits="WebTestharness.DLR" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Iron Web , Dynamic Language Runtime !
    </h2>
    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">Consultant Registration </a></li>
            <li><a href="#tabs-2">POST Advertizement</a></li>
            <li><a href="#tabs-3">Get Resumes</a></li>
        </ul>
        <div id="tabs-1">
             <h2>
              For consultant: Register your name here</h2>
               <h3>
                Consultant must have an web service for Subscriptions here
                </h3>
             <br />
             <asp:GridView ID="GridViewConsultant" runat="server"
                 AutoGenerateColumns="False" DataKeyNames="consultantid"
                 DataSourceID="LinqDataSourceConsultantDataSource" AllowPaging="True" 
                 AllowSorting="True" AutoGenerateDeleteButton="True" 
                 AutoGenerateEditButton="True" BackColor="White" BorderColor="#CCCCCC" 
                 BorderStyle="None" BorderWidth="1px" CellPadding="3">
                 <Columns>
                     <asp:CommandField ShowSelectButton="True" />
                     <asp:BoundField DataField="consultantid" HeaderText="consultantid" 
                         ReadOnly="True" SortExpression="consultantid" />
                     <asp:BoundField DataField="consultantname" HeaderText="consultantname" 
                         SortExpression="consultantname" />
                     <asp:BoundField DataField="registereddate" HeaderText="registereddate" 
                         SortExpression="registereddate" />
                     <asp:BoundField DataField="advertizementurl" HeaderText="advertizementurl" 
                         SortExpression="advertizementurl" />
                     <asp:BoundField DataField="advertizementmethod" 
                         HeaderText="advertizementmethod" SortExpression="advertizementmethod" />
                     <asp:CheckBoxField DataField="callbackenabled" HeaderText="callbackenabled" 
                         SortExpression="callbackenabled" />
                 </Columns>
                 <FooterStyle BackColor="White" ForeColor="#000066" />
                 <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                 <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                 <RowStyle ForeColor="#000066" />
                 <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                 <SortedAscendingCellStyle BackColor="#F1F1F1" />
                 <SortedAscendingHeaderStyle BackColor="#007DBB" />
                 <SortedDescendingCellStyle BackColor="#CAC9C9" />
                 <SortedDescendingHeaderStyle BackColor="#00547E" />
             </asp:GridView>
             <asp:LinqDataSource ID="LinqDataSourceConsultantDataSource" runat="server" 
                 ContextTypeName="WebTestharness.Entity.AdvertizementRegistrationDataContext" 
                 EntityTypeName="consultant" 
                 TableName="consultants" EnableDelete="True" EnableInsert="True" 
                 EnableUpdate="True">
             </asp:LinqDataSource>
             <br />
             <asp:DetailsView ID="DetailsViewConsultant" runat="server" 
                 AutoGenerateRows="False" DataSourceID="LinqDataSourceConsultantSingle" 
                 Height="50px" Width="125px" AllowPaging="True" DataKeyNames="consultantid" 
                 oniteminserted="DetailsViewConsultant_ItemInserted">
                 <Fields>
                     <asp:BoundField DataField="consultantid" HeaderText="consultantid" 
                         ReadOnly="True" SortExpression="consultantid" />
                     <asp:BoundField DataField="consultantname" HeaderText="consultantname" 
                         SortExpression="consultantname" />
                     <asp:BoundField DataField="registereddate" HeaderText="registereddate" 
                         SortExpression="registereddate" />
                     <asp:BoundField DataField="advertizementurl" HeaderText="advertizementurl" 
                         SortExpression="advertizementurl" />
                     <asp:BoundField DataField="advertizementmethod" 
                         HeaderText="advertizementmethod" 
                         SortExpression="advertizementmethod" />
                     <asp:CheckBoxField DataField="callbackenabled" HeaderText="callbackenabled" 
                         SortExpression="callbackenabled" />
                     <asp:CommandField ShowInsertButton="True" />
                 </Fields>
             </asp:DetailsView>
             <br />
             <asp:LinqDataSource ID="LinqDataSourceConsultantSingle" runat="server" 
                 ContextTypeName="WebTestharness.Entity.AdvertizementRegistrationDataContext" 
                 EntityTypeName="" 
                 TableName="consultants" Where="consultantid == @consultantid" 
                 EnableInsert="True" EnableUpdate="True">
                 <WhereParameters>
                     <asp:ControlParameter ControlID="GridViewConsultant" 
                         DefaultValue="0" Name="consultantid"  Type="Int32"  />
                 </WhereParameters>
             </asp:LinqDataSource>
             <br />
             <br />
        </div>
        <div id="tabs-2">
            <h2>
                Post the Requirement as Advertizement</h2>
            <h3>
                Hiring in on..Projects!!Projects!!Projects!!A Lots of work here</h3>
           
            <table>
                <tr>
                    <td>
                        Total Requirement:
                    </td>
                    <td>
                        <asp:TextBox ID="txtNumber" runat="server" Width="531px">2</asp:TextBox>
                    </td>
                    <td>
                        Engineers
                    </td>
                </tr>
                <tr>
                    <td>
                        Skills Set
                    </td>
                    <td>
                        <asp:ListBox ID="lstSkills" Rows="6"  SelectionMode="multiple" runat="server" 
                            Height="93px" Width="526px"></asp:ListBox>
                    </td>
                    <td>
                        Language/Platform
                    </td>
                </tr>
                <tr>
                    <td>
                        Minimum Experience
                    </td>
                    <td>
                        <asp:DropDownList ID="lstExperience" runat="server" Height="16px" Width="355px">
                            <asp:ListItem Value="0">0-12</asp:ListItem>
                            <asp:ListItem Value="1">12-24</asp:ListItem>
                            <asp:ListItem Value="3">24-26</asp:ListItem>
                            <asp:ListItem Value="4">36-48</asp:ListItem>
                        </asp:DropDownList><asp:Button ID="btnGetXML" runat="server" 
                            Text="GET ADVERTIZEMENT XML " onclick="btnGetXML_Click" Width="170px"></asp:Button>
                    </td>
                    <td>
                        Experience in month
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        

                            <br />

                            <asp:TextBox ID="txtXML" runat="server" TextMode="MultiLine" Height="135px" 
                            Width="523px"></asp:TextBox>
                            <br />

                               <asp:Button ID="btnPostAds" runat="server" Text="POST THE ADVERTIZEMENT" Width="523px"
                            OnClick="btnPostAds_Click" Height="43px"></asp:Button>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
            <br />
             <br />
              <br />
        </div>
        <div id="tabs-3">
          
        </div>
    </div>
  <script type="text/javascript">
      $(function () {
          $("#tabs").tabs();
      });
	</script>
</asp:Content>
